package com.freemyleft.left.left_app.mian.index.my.mywallet.share.adapter;

import com.freemyleft.left.zapp.ui.recycler.DataConverter;
import com.freemyleft.left.zapp.ui.recycler.MultipleFields;
import com.freemyleft.left.zapp.ui.recycler.MultipleItemEntity;

import java.util.ArrayList;

public class SharedConvert extends DataConverter {
    ArrayList<MultipleItemEntity>entities=new ArrayList<>();
    @Override
    public ArrayList<MultipleItemEntity> convert() {
        int size =3;
        for (int i = 0; i <size ; i++) {
            String id="用户：1234564789";
            String status="邀请成功";
            String time="08.08 12:00";
            MultipleItemEntity entity=MultipleItemEntity.builder()
                    .setField(MultipleFields.ITEM_TYPE,SharedAdapter.SHARED_TYPE)
                    .setField(SharedAdapter.ShareFlies.ID,id)
                    .setField(SharedAdapter.ShareFlies.TIME,time)
                    .setField(SharedAdapter.ShareFlies.STASTUS,status)
                    .build();
                  entities.add(entity);
        }
        return entities;
    }
}
